package com.example.domain.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Integer id;
    private String name;
    private String idCard;
    private Integer age;
    @JsonFormat(pattern = " yyyy-MM-dd  HH:mm:ss")
    private LocalDateTime endTime;
    private String password;
    private String phone;


    //医生还是学生
    private Integer role;

    private BigDecimal balance;

    /**
     * 医生的
     */
    private Integer departmentId;
    private String detail;
    private String photopath;
    private Integer hospitalId;

    private String position;//职位

    private String roleF;
}
